/**
 * 
 */
package com.ychs.corejava.lesson2;

/**
 * 任务1：教务系统中的学生类
 * @author LENOVO
 * @version 1.0
 */
public class Student {
	/** 学生姓名*/
	private String studentName;
	/** 学生学号*/
	private String studentID;
	/** 性别*/
	private String sex;
	private String nation;
	private int age;
	
	
	
	 
	
	public Student() {
		super();
	}

	
	public Student(String studentName, int age) {
		super();
		this.studentName = studentName;
		this.age = age;
	}


	public Student(String studentName, String studentID, String sex, String nation, int age) {
		super();
		this.studentName = studentName;
		this.studentID = studentID;
		this.sex = sex;
		this.nation = nation;
		this.age = age;
	}


	/**
	 * @return the studentName
	 */
	public String getStudentName() {
		return studentName;
	}

	/**
	 * @param studentName the studentName to set
	 */
	public void setStudentName(String studentName) {
		this.studentName = studentName;
	}

	/**
	 * @return the studentID
	 */
	public String getStudentID() {
		return studentID;
	}

	/**
	 * @param studentID the studentID to set
	 */
	public void setStudentID(String studentID) {
		this.studentID = studentID;
	}

	/**
	 * @return the sex
	 */
	public String getSex() {
		return sex;
	}

	/**
	 * @param sex the sex to set
	 */
	public void setSex(String sex) {
		this.sex = sex;
	}

	/**
	 * @return the nation
	 */
	public String getNation() {
		return nation;
	}

	/**
	 * @param nation the nation to set
	 */
	public void setNation(String nation) {
		this.nation = nation;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * 说话方法
	 * @param words 要说的话
	 */
	public void speak(String words) {
		System.out.println("说："+ words);
	}
	
	/**
	 * 吃饭方法
	 * @param food 吃的东西
	 * @return 吃饭后的感受，是好吃或不好吃
	 */
	public String eat(String food) {
		System.out.println("我正在吃： "+food);
		return "好吃！";
	}
	
	/**
	 * 完成两个int型数字的加法计算
	 * @param num1 第一个数字
	 * @param num2 第二个数字
	 * @return 加法计算得到的结果
	 */
	public int add(int num1,int num2) {
		return num1+num2;
	}
	
}

